home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16966 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.edge.net!news
  2. From: Mike Wright <qmsi@edge.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Visuall C++ linker question
  5. Date: Fri, 12 Apr 1996 16:18:21 -0500
  6. Organization: QMSI
  7. Message-ID: <316EC89D.2B24@edge.net>
  8. NNTP-Posting-Host: ip206.nash.edge.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01Gold (Win95; I)
  13.  
  14. I am currently starting up a large project. I wish to have a common library of
  15. derived class functions which can be used by several programs (projects). I
  16. derived 2 CRecordSet classes and got them working in a single project using
  17. AppWizard. I then moved the files to a different directory and created a new
  18. static library-based project in that directory. I removed the files from the original
  19. project (a dialog based application). The static library is created successfully,
  20. but when I attempt to link my dialog-based project to that library, I get 125 link
  21. errors about multiply defined symbolss. None of these are my project's variables.
  22. I think it has something to do with "stdafx.h" being included in both places, but I
  23. need it in both places. It might have something to do with the pre-compiled headers,
  24. but after 4 hours of working on this I'm stumped. It's not near as staightforward as
  25. Unix.
  26.  
  27. Is there a way to modify the linker options for precompiled headers to create a
  28. single pch file and have the static library and the application project both
  29. use just that one pch? I tried this but was unsuccessful. Is there another way
  30. to prevent these multiply defined symbols errors? I need help!!!!!!!
  31.  
  32. Thanks in advance,
  33.  
  34. Mike Wright
  35.